<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body onload="checkCookie()">
		<div id="div1"></div>
		<input type="text"  id="frame1" onchange="myFun()"></input>
	</body>
</html>
<script>
	function checkCookie(){
		var text="";
		if(navigator.cookieEnabled ==true){
			text="cookie 启用"
		}else{
			text ="cookie没有启用"
		}
		document.getElementById("div1").innerHTML=text;
	}
	function myFun(){
		var str = document.getElementById("frame1");
		str.value = str.value.toUpperCase();
	}
</script>
